﻿<%@ Page Title="Música" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Musica.aspx.cs" Inherits="uVirtualWeb.List.Musica" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <h2>
        Músicas
    </h2>
    <asp:Literal runat="server" ID="ltrPlayer"/>
    <p></p>
    <asp:UpdatePanel runat="server" ID="upMusicas" UpdateMode="Conditional">
        <Triggers>
        </Triggers>
        <ContentTemplate>
            <asp:ListView runat="server" ID="lstMusicas" ItemPlaceholderID="PlaceHolder1">
                <LayoutTemplate>
                    <table class="table table-bordered table-hover">
                        <tr>
                            <th>Artista</th>
                            <th>Título</th>
                            <th>Álbum</th>
                            <th></th>
                        </tr>
                        <asp:PlaceHolder runat="server" ID="PlaceHolder1">
                        </asp:PlaceHolder>
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                        <tr>
                            <td><asp:Label ID="Label1" runat="server"><%# Eval("artista") %></asp:Label></td>
                            <td><asp:Label ID="Label2" runat="server"><%# Eval("titulo") %></asp:Label></td>
                            <td><asp:Label ID="Label3" runat="server"><%# Eval("album") %></asp:Label></td>
                            <td><center>
                            <a target="_blank" href='<%# Eval("arquivo") %>' class="btn btn-mini" onclick="Tocar('<%# Eval("arquivo") %>');">Ouvir</a>
                            <asp:Button CommandName="Ouvir" CssClass="btn btn-mini" runat="server" ID="btn" Text="Teste" OnCommand="btnOuvir_Click" CommandArgument='<%# Eval("arquivo") %>' />
                            <a target="_blank" href="http://www.4shared.com/folder/pYPxs4v2/Musicas.html" class="btn btn-mini">Ouvir</a>
                            <a target="_blank" href='<%# Eval("videoClipe") %>' class="btn btn-mini">Video Clipe</a>
                            </center></td>
                        </tr>
                </ItemTemplate>
                <EmptyItemTemplate>
                    Não existem itens a serem listados.
                </EmptyItemTemplate>
            </asp:ListView>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script type="text/javascript">
        $("#menu_musica").addClass("active");
    </script>
</asp:Content>
